# -*- codeing = UTF-8 -*-
# @Time : 2022/12/10 14:12
# @Author : 王一1122
# @File : py003_1.py
# @Software : PyCharm
x = int(input("请输入：剪刀0、石头1、布2："))
import random
m = random.randint(0,2)
if m == 0:
    print("你的对手出了剪刀")
elif m == 1:
    print("你的对手出了石头")
else:
    print("你的对手出了布")

if x == 0:
    if m == 1:
        print("你赢了")
    elif m == 0:
        print("再来一局")
    elif m == 2:
        print("你输了")
elif x == 1:
    if m == 1:
        print("再来一局")
    elif m == 0:
        print("你赢了")
    elif m == 2:
        print("你输了")
elif x == 2:
    if m == 1:
        print("你赢了")
    elif m == 0:
        print("你输了")
    elif m == 2:
        print("再来一局")
else:
    print("输入有误")